
namespace Huirui.Cavan.Presentation.Seedwork
{
    using System;
    using System.Collections.Generic;
    using Huirui.Cavan.Core.Message;

    /// <summary>
    ///     Provides a general interface for objet Factory.
    /// </summary>
    public interface IFactory
    {

        T CreateInstance<T>(IList<AppMessage> messages = null);

        object CreateInstance(Type type, IList<AppMessage> messages = null);
    }
}